 -- load superclass Gameelement
 dofile('gameelement.lua')
 dofile('globalfunc.lua')
 dofile('character.lua')
-- Dialogs --

-- Dialog Table --
-- TODO: Parse the dialogs form a xml or ...

red = Color.new(15,15,15)

Dialog = {}

-- Dialog = {
--   color = 0,
--   font = nil,
--   text = "hallo Welt"
-- }

function Dialog:new(o)
  o = o or {}
  setmetatable(o, self)
  self.__index = self
  ---
  self.color = {3,2,23}
  self.font = nil
  self.text = "hello world"
  return o
end

function Dialog:destroy()
  self = nil
  collectgarbage()
end

Dialog.text ={}


julistestvariable = "hallo welt"

  Dialog.queue = {} 

  Dialog.queue[0] = Dialog:new()

  --if controls.button5 == "pressed" then
    --Dialog.destroy(Dialog.queue[1])
  --end





